package teste;

import model.Hotel;
import model.Quarto;
import controller.HotelController;
import dao.DAOHotel;

public class TesteHotelController {

	public static void main(String[] args) throws Exception {
		HotelController hc = new HotelController();
		DAOHotel dao = new DAOHotel();
//		Hotel h = hc.criarHotel("Hotel2", "Gerente do Hotel2", 5);
		Hotel h = dao.findLast();
		System.out.println(h.getNome());
		System.out.println(h.getGerente());
		for(Quarto q : h.getQuartos()) {
			System.out.println("Quarto" + q.getNumero() + " esta " + (q.isOcupado() ? "ocupado" : "livre"));
			
		}

	}

}
